    <div id="field_<?=$name?>" class="field<?if(!empty($error)):?> error<?endif;?><?if ($is_ok):?> ok<?endif?>">
        <p><label for="id_field_<?=$name?>"><?=$title?><?if($required):?> <span class="required">*</span><?endif?></label><?if (!empty($description)):?><br/><span class="description"><?=$description?></span><?endif?></p>

        <div style="height:100px;">
            <img src="<?=empty($this->vars['value'])?"assets/snippets/mvc/data/workplace/avatar_100x100.jpg":$this->vars['value']?>" width="100" height="100" alt="Фотография" style="float:left"/>

            <input type="hidden" name="<?=$name?>" id="id_field_<?=$name?>" value="<?=$this->vars['value']?>"/>

            <div class="image_control">
                <div><button onclick="return false;" class="<?if (empty($this->vars['value'])):?>hide<?endif;?>"<img src="/manager/media/style/MODxCarbon/images/icons/delete.png" alt=""/> Удалить</button></div>
                <div><button onclick="return false;"><img src="/manager/media/style/MODxCarbon/images/icons/b092.gif" alt=""/> Загрузить</button></div>

            </div>

        </div>
        <span class="error" id="error_for_<?=$name?>"><?=$error?></span>
    </div>
